<!DOCTYPE html>
<html lang="en-US">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <title>使用 Fastlane 自动打包应用 | KnightSama‘s Blog</title>
    <meta name="description" content="Hello, my friend!">
    <link rel="icon" href="/favicon.ico">
  <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no">
  <script src="https://cdn.jsdelivr.net/npm/react/umd/react.production.min.js"></script>
  <script src="https://cdn.jsdelivr.net/npm/react-dom/umd/react-dom.production.min.js"></script>
  <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.min.js"></script>
  <script src="https://cdn.jsdelivr.net/npm/@babel/standalone/babel.min.js"></script>
    
    <link rel="preload" href="/assets/css/0.styles.c4ea52a5.css" as="style"><link rel="preload" href="/assets/js/app.a2483de7.js" as="script"><link rel="preload" href="/assets/js/4.0078dadf.js" as="script"><link rel="preload" href="/assets/js/1.c3e7d2b0.js" as="script"><link rel="preload" href="/assets/js/36.f5725281.js" as="script"><link rel="prefetch" href="/assets/js/10.265e4f40.js"><link rel="prefetch" href="/assets/js/11.a3a2f8c1.js"><link rel="prefetch" href="/assets/js/12.1910f8cc.js"><link rel="prefetch" href="/assets/js/13.229fa478.js"><link rel="prefetch" href="/assets/js/14.c27d4a17.js"><link rel="prefetch" href="/assets/js/15.92adafd4.js"><link rel="prefetch" href="/assets/js/16.bcee7c14.js"><link rel="prefetch" href="/assets/js/17.ee1bcf41.js"><link rel="prefetch" href="/assets/js/18.fa3c3a4e.js"><link rel="prefetch" href="/assets/js/19.1a943c57.js"><link rel="prefetch" href="/assets/js/20.44781dae.js"><link rel="prefetch" href="/assets/js/21.1fe46223.js"><link rel="prefetch" href="/assets/js/22.6f7d46c2.js"><link rel="prefetch" href="/assets/js/23.56223d02.js"><link rel="prefetch" href="/assets/js/24.e7cad43b.js"><link rel="prefetch" href="/assets/js/25.b2902552.js"><link rel="prefetch" href="/assets/js/26.70698c07.js"><link rel="prefetch" href="/assets/js/27.6ee3d263.js"><link rel="prefetch" href="/assets/js/28.ce131de6.js"><link rel="prefetch" href="/assets/js/29.90552487.js"><link rel="prefetch" href="/assets/js/30.b3291ccc.js"><link rel="prefetch" href="/assets/js/31.ea8c441e.js"><link rel="prefetch" href="/assets/js/32.3e29bbeb.js"><link rel="prefetch" href="/assets/js/33.65e78c5e.js"><link rel="prefetch" href="/assets/js/34.3ba19d7c.js"><link rel="prefetch" href="/assets/js/35.66d3fc4a.js"><link rel="prefetch" href="/assets/js/37.f5b0b5ff.js"><link rel="prefetch" href="/assets/js/38.3cae3054.js"><link rel="prefetch" href="/assets/js/39.47dc1ffe.js"><link rel="prefetch" href="/assets/js/5.f0714e2e.js"><link rel="prefetch" href="/assets/js/6.53240a5f.js"><link rel="prefetch" href="/assets/js/7.dc126a6b.js"><link rel="prefetch" href="/assets/js/8.86452400.js"><link rel="prefetch" href="/assets/js/9.16ef06de.js"><link rel="prefetch" href="/assets/js/vendors~flowchart.734d5d92.js">
    <link rel="stylesheet" href="/assets/css/0.styles.c4ea52a5.css">
  </head>
  <body>
    <div id="app" data-server-rendered="true"><div><div class="theme-container" data-v-0cb1c278><div data-v-0cb1c278><div id="loader-wrapper" class="loading-wrapper" data-v-4b73742e data-v-0cb1c278 data-v-0cb1c278><div class="loader-main" data-v-4b73742e><div data-v-4b73742e></div><div data-v-4b73742e></div><div data-v-4b73742e></div><div data-v-4b73742e></div></div> <!----> <!----></div> <div class="password-shadow password-wrapper-out" style="display:none;" data-v-da0660ba data-v-0cb1c278 data-v-0cb1c278><h3 class="title" style="display:none;" data-v-da0660ba data-v-da0660ba>KnightSama‘s Blog</h3> <!----> <label id="box" class="inputBox" style="display:none;" data-v-da0660ba data-v-da0660ba><input type="password" value="" data-v-da0660ba> <span data-v-da0660ba>Konck! Knock!</span> <button data-v-da0660ba>OK</button></label> <div class="footer" style="display:none;" data-v-da0660ba data-v-da0660ba><span data-v-da0660ba><i class="iconfont reco-theme" data-v-da0660ba></i> <a target="blank" href="https://vuepress-theme-reco.recoluan.com" data-v-da0660ba>vuePress-theme-reco</a></span> <span data-v-da0660ba><i class="iconfont reco-copyright" data-v-da0660ba></i> <a data-v-da0660ba><span data-v-da0660ba>KnightSama</span>
            
          <!---->
          2021
        </a></span></div></div> <div class="hide" data-v-0cb1c278><header class="navbar" data-v-0cb1c278><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/" class="home-link router-link-active"><img src="/Misaka.jpg" alt="KnightSama‘s Blog" class="logo"> <span class="site-name">KnightSama‘s Blog</span></a> <div class="links"><div class="color-picker"><a class="color-button"><i class="iconfont reco-color"></i></a> <div class="color-picker-menu" style="display:none;"><div class="mode-options"><h4 class="title">Choose mode</h4> <ul class="color-mode-options"><li class="dark">dark</li><li class="auto active">auto</li><li class="light">light</li></ul></div></div></div> <div class="search-box"><i class="iconfont reco-search"></i> <input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="/" class="nav-link"><i class="iconfont reco-home"></i>
  首页
</a></div><div class="nav-item"><div class="dropdown-wrapper"><a class="dropdown-title"><span class="title"><i class="iconfont reco-category"></i>
      分类
    </span> <span class="arrow right"></span></a> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/categories/iOS/" class="nav-link"><i class="iconfont undefined"></i>
  iOS
</a></li><li class="dropdown-item"><!----> <a href="/categories/集锦/" class="nav-link"><i class="iconfont undefined"></i>
  集锦
</a></li><li class="dropdown-item"><!----> <a href="/categories/JavaScript/" class="nav-link"><i class="iconfont undefined"></i>
  JavaScript
</a></li><li class="dropdown-item"><!----> <a href="/categories/Github/" class="nav-link"><i class="iconfont undefined"></i>
  Github
</a></li><li class="dropdown-item"><!----> <a href="/categories/Python/" class="nav-link"><i class="iconfont undefined"></i>
  Python
</a></li></ul></div></div><div class="nav-item"><a href="/tag/" class="nav-link"><i class="iconfont reco-tag"></i>
  标签
</a></div><div class="nav-item"><a href="/timeline/" class="nav-link"><i class="iconfont reco-date"></i>
  时间线
</a></div><div class="nav-item"><a href="https://github.com/KnightSama" target="_blank" rel="noopener noreferrer" class="nav-link external"><i class="iconfont reco-github"></i>
  GitHub
  <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></div> <!----></nav></div></header> <div class="sidebar-mask" data-v-0cb1c278></div> <aside class="sidebar" data-v-0cb1c278><div class="personal-info-wrapper" data-v-4a3def3c><img src="/Misaka.jpg" alt="author-avatar" class="personal-img" data-v-4a3def3c> <h3 class="name" data-v-4a3def3c>
    KnightSama
  </h3> <div class="num" data-v-4a3def3c><div data-v-4a3def3c><h3 data-v-4a3def3c>27</h3> <h6 data-v-4a3def3c>文章</h6></div> <div data-v-4a3def3c><h3 data-v-4a3def3c>14</h3> <h6 data-v-4a3def3c>标签</h6></div></div> <hr data-v-4a3def3c></div> <nav class="nav-links"><div class="nav-item"><a href="/" class="nav-link"><i class="iconfont reco-home"></i>
  首页
</a></div><div class="nav-item"><div class="dropdown-wrapper"><a class="dropdown-title"><span class="title"><i class="iconfont reco-category"></i>
      分类
    </span> <span class="arrow right"></span></a> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/categories/iOS/" class="nav-link"><i class="iconfont undefined"></i>
  iOS
</a></li><li class="dropdown-item"><!----> <a href="/categories/集锦/" class="nav-link"><i class="iconfont undefined"></i>
  集锦
</a></li><li class="dropdown-item"><!----> <a href="/categories/JavaScript/" class="nav-link"><i class="iconfont undefined"></i>
  JavaScript
</a></li><li class="dropdown-item"><!----> <a href="/categories/Github/" class="nav-link"><i class="iconfont undefined"></i>
  Github
</a></li><li class="dropdown-item"><!----> <a href="/categories/Python/" class="nav-link"><i class="iconfont undefined"></i>
  Python
</a></li></ul></div></div><div class="nav-item"><a href="/tag/" class="nav-link"><i class="iconfont reco-tag"></i>
  标签
</a></div><div class="nav-item"><a href="/timeline/" class="nav-link"><i class="iconfont reco-date"></i>
  时间线
</a></div><div class="nav-item"><a href="https://github.com/KnightSama" target="_blank" rel="noopener noreferrer" class="nav-link external"><i class="iconfont reco-github"></i>
  GitHub
  <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></div> <!----></nav>  <ul class="sidebar-links"><li><section class="sidebar-group depth-0"><p class="sidebar-heading open"><span>使用 Fastlane 自动打包应用</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/Views/20210110.html#安装" class="sidebar-link">安装</a><ul class="sidebar-sub-headers"></ul></li><li><a href="/Views/20210110.html#使用" class="sidebar-link">使用</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/Views/20210110.html#初始化" class="sidebar-link">初始化</a></li><li class="sidebar-sub-header"><a href="/Views/20210110.html#配置" class="sidebar-link">配置</a></li><li class="sidebar-sub-header"><a href="/Views/20210110.html#执行" class="sidebar-link">执行</a></li></ul></li><li><a href="/Views/20210110.html#lane" class="sidebar-link">Lane</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/Views/20210110.html#参数传递" class="sidebar-link">参数传递</a></li><li class="sidebar-sub-header"><a href="/Views/20210110.html#调用" class="sidebar-link">调用</a></li><li class="sidebar-sub-header"><a href="/Views/20210110.html#返回值" class="sidebar-link">返回值</a></li><li class="sidebar-sub-header"><a href="/Views/20210110.html#before-all-与-before-each" class="sidebar-link">before_all 与 before_each</a></li><li class="sidebar-sub-header"><a href="/Views/20210110.html#after-all-与-after-each" class="sidebar-link">after_all 与 after_each</a></li><li class="sidebar-sub-header"><a href="/Views/20210110.html#error" class="sidebar-link">error</a></li></ul></li><li><a href="/Views/20210110.html#action" class="sidebar-link">Action</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/Views/20210110.html#cocoapods" class="sidebar-link">cocoapods</a></li><li class="sidebar-sub-header"><a href="/Views/20210110.html#gym" class="sidebar-link">gym</a></li></ul></li><li><a href="/Views/20210110.html#plugin" class="sidebar-link">Plugin</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/Views/20210110.html#上传至-fir-im" class="sidebar-link">上传至 fir.im</a></li><li class="sidebar-sub-header"><a href="/Views/20210110.html#上传到蒲公英" class="sidebar-link">上传到蒲公英</a></li></ul></li></ul></section></li></ul> </aside> <div class="password-shadow password-wrapper-in" style="display:none;" data-v-da0660ba data-v-0cb1c278><h3 class="title" style="display:none;" data-v-da0660ba data-v-da0660ba>使用 Fastlane 自动打包应用</h3> <!----> <label id="box" class="inputBox" style="display:none;" data-v-da0660ba data-v-da0660ba><input type="password" value="" data-v-da0660ba> <span data-v-da0660ba>Konck! Knock!</span> <button data-v-da0660ba>OK</button></label> <div class="footer" style="display:none;" data-v-da0660ba data-v-da0660ba><span data-v-da0660ba><i class="iconfont reco-theme" data-v-da0660ba></i> <a target="blank" href="https://vuepress-theme-reco.recoluan.com" data-v-da0660ba>vuePress-theme-reco</a></span> <span data-v-da0660ba><i class="iconfont reco-copyright" data-v-da0660ba></i> <a data-v-da0660ba><span data-v-da0660ba>KnightSama</span>
            
          <!---->
          2021
        </a></span></div></div> <div data-v-0cb1c278><main class="page"><div class="sidebar-open-close"><svg xmlns="http://www.w3.org/2000/svg" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <!----> <div class="page-title" style="display:none;"><h1>使用 Fastlane 自动打包应用</h1> <hr> <div data-v-73367bb4><i class="iconfont reco-account" data-v-73367bb4><span data-v-73367bb4>KnightSama</span></i> <i class="iconfont reco-date" data-v-73367bb4><span data-v-73367bb4>2021-01-10</span></i> <i class="iconfont reco-eye" data-v-73367bb4><span id="/Views/20210110.html" data-flag-title="Your Article Title" class="leancloud-visitors" data-v-73367bb4><a class="leancloud-visitors-count" style="font-size:.9rem;font-weight:normal;color:#999;"></a></span></i> <i class="iconfont reco-tag tags" data-v-73367bb4><span class="tag-item" data-v-73367bb4>
      Fastlane
    </span></i></div></div> <div class="theme-reco-content content__default" style="display:none;"><p><a href="https://docs.fastlane.tools/" target="_blank" rel="noopener noreferrer">Fastlane<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a> 是一套自动化打包工具，通过配置文件组合不同的工具实现自动化的打包发布流程，极大地节省了应用打包发布流程的时间
</p> <h2 id="安装"><a href="#安装" class="header-anchor">#</a> 安装</h2> <p>通过 Homebrew 安装 <a href="https://docs.fastlane.tools/" target="_blank" rel="noopener noreferrer">Fastlane<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></p> <div class="language-bash line-numbers-mode"><pre class="language-bash"><code>brew <span class="token function">install</span> fastlane
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br></div></div><p>通过 RubyGems 安装 <a href="https://docs.fastlane.tools/" target="_blank" rel="noopener noreferrer">Fastlane<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></p> <div class="language-bash line-numbers-mode"><pre class="language-bash"><code><span class="token function">sudo</span> gem <span class="token function">install</span> fastlane -NV
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br></div></div><h2 id="使用"><a href="#使用" class="header-anchor">#</a> 使用</h2> <h3 id="初始化"><a href="#初始化" class="header-anchor">#</a> 初始化</h3> <p>进入工程根目录，执行下面的指令</p> <div class="language-bash line-numbers-mode"><pre class="language-bash"><code>fastlane init
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br></div></div><p>运行后按照提示操作完成后会在根目录下创建下面的文件</p> <div class="language-md line-numbers-mode"><pre class="language-md"><code>Root
├── fastlane
│   ├── Appfile
│   └── Fastfile
└── Gemfile
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br></div></div><ul><li>Gemfile - Ruby 的依赖管理文件，用来配置 fastlane 用到的三方组件如 CocoaPods</li> <li>Appfile - 记录项目的关键信息，如包名、Apple ID、Team ID 等</li> <li>Fastfile - 管理 <a href="#lane">lane</a> 的文件，我们所有的操作都在这个文件中配置</li></ul> <h3 id="配置"><a href="#配置" class="header-anchor">#</a> 配置</h3> <p>我们在工程目录下初始化 fastlane 后，需要根据需求来配置 Fastfile 文件完成自动化打包的操作，其中最重要的就是 <a href="#lane">lane</a> 与 <a href="#action">action</a>。简单来说 <a href="#lane">lane</a> 可以看做一个函数，里面包含打包所需要的操作，每个操作都可以看做一个 <a href="#action">action</a>，在执行时 fastlane 会依次调用 <a href="#lane">lane</a> 中配置的 <a href="#action">action</a> 来完成打包等操作。</p> <div class="language-ruby line-numbers-mode"><pre class="language-ruby"><code>lane <span class="token symbol">:debug</span> <span class="token keyword">do</span>
  <span class="token comment"># action1</span>
  <span class="token comment"># action2</span>
  <span class="token comment"># ...</span>
<span class="token keyword">end</span>
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br></div></div><p>上面是一个简单的 <a href="#lane">lane</a> 的结构，其中  <code>:debug</code>  是 <a href="#lane">lane</a> 的名字，我们可以根据需要进行定义，一个 Fastfile 中可以包含多个这样的 <a href="#lane">lane</a>，运行时通过名字来区分。</p> <h3 id="执行"><a href="#执行" class="header-anchor">#</a> 执行</h3> <p>当我们配置好 Fastfile 后就可以通过在工程目录下执行 <code>fastlane [lane名称]</code>  来运行指定的 <a href="#lane">lane</a> 打包。例如上面的示例结构我们可以通过下面的脚本执行</p> <div class="language-bash line-numbers-mode"><pre class="language-bash"><code>fastlane debug
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br></div></div><h2 id="lane"><a href="#lane" class="header-anchor">#</a> Lane</h2> <h3 id="参数传递"><a href="#参数传递" class="header-anchor">#</a> 参数传递</h3> <p>在执行 lane 时我们还可以通过指令来传递参数</p> <div class="language-bash line-numbers-mode"><pre class="language-bash"><code><span class="token comment"># fastlane [lane] key1:value1 key2:value2 </span>
fastlane debug version:1.0.0 cocoapods:true
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br><span class="line-number">2</span><br></div></div><p>在 lane 中我们通过  <code>options</code>  来接收使用传入的参数</p> <div class="language-ruby line-numbers-mode"><pre class="language-ruby"><code>lane <span class="token symbol">:debug</span> <span class="token keyword">do</span> <span class="token operator">|</span>options<span class="token operator">|</span>
  <span class="token comment"># options[:key]</span>
  version <span class="token operator">=</span> options<span class="token punctuation">[</span><span class="token symbol">:version</span><span class="token punctuation">]</span> <span class="token comment"># 1.0.0</span>
  <span class="token keyword">if</span> options<span class="token punctuation">[</span><span class="token symbol">:cocoapods</span><span class="token punctuation">]</span>
     <span class="token comment"># 只有 cocoapods 为 true 时才会执行这里</span>
     <span class="token punctuation">.</span><span class="token punctuation">.</span><span class="token punctuation">.</span>
  <span class="token keyword">end</span>
<span class="token keyword">end</span>
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br></div></div><h3 id="调用"><a href="#调用" class="header-anchor">#</a> 调用</h3> <p>跟函数之间的调用类似，一个 lane 可以调用其他的 lane。</p> <div class="language-ruby line-numbers-mode"><pre class="language-ruby"><code>lane <span class="token symbol">:release</span> <span class="token keyword">do</span> <span class="token operator">|</span>options<span class="token operator">|</span>
  build<span class="token punctuation">(</span>release<span class="token punctuation">:</span> <span class="token keyword">true</span><span class="token punctuation">)</span>  <span class="token comment"># 调用 build 并传入参数</span>
<span class="token keyword">end</span>

lane <span class="token symbol">:debug</span> <span class="token keyword">do</span> <span class="token operator">|</span>options<span class="token operator">|</span>
  build  <span class="token comment"># 调用 build 默认无参数</span>
<span class="token keyword">end</span>

lane <span class="token symbol">:build</span> <span class="token keyword">do</span> <span class="token operator">|</span>options<span class="token operator">|</span>
  <span class="token comment"># 用指定的方式编译 app</span>
  build_ios_app<span class="token punctuation">(</span>scheme<span class="token punctuation">:</span> <span class="token punctuation">(</span>options<span class="token punctuation">[</span><span class="token symbol">:release</span><span class="token punctuation">]</span> <span class="token operator">?</span> <span class="token string">&quot;Release&quot;</span> <span class="token punctuation">:</span> <span class="token string">&quot;Debug&quot;</span><span class="token punctuation">)</span><span class="token punctuation">)</span>
<span class="token keyword">end</span>
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br><span class="line-number">10</span><br><span class="line-number">11</span><br><span class="line-number">12</span><br></div></div><h3 id="返回值"><a href="#返回值" class="header-anchor">#</a> 返回值</h3> <p>lane 中最后一行代码的结果会被作为返回值，并且在一个 lane 中我们可以调用其他的 lane</p> <div class="language-ruby line-numbers-mode"><pre class="language-ruby"><code>lane <span class="token symbol">:debug</span> <span class="token keyword">do</span> <span class="token operator">|</span>options<span class="token operator">|</span>
  result <span class="token operator">=</span> add<span class="token punctuation">(</span>value<span class="token punctuation">:</span> <span class="token number">1</span><span class="token punctuation">)</span>  <span class="token comment"># result 值为 2</span>
<span class="token keyword">end</span>

lane <span class="token symbol">:add</span> <span class="token keyword">do</span> <span class="token operator">|</span>options<span class="token operator">|</span>
  options<span class="token punctuation">[</span><span class="token symbol">:value</span><span class="token punctuation">]</span> <span class="token operator">+</span> <span class="token number">1</span>  <span class="token comment"># 结果会作为返回值返回</span>
<span class="token keyword">end</span>
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br></div></div><h3 id="before-all-与-before-each"><a href="#before-all-与-before-each" class="header-anchor">#</a> <code>before_all</code>  与  <code>before_each</code></h3> <p><code>before_all</code>  会在 lane 执行前执行一次</p> <div class="language-ruby line-numbers-mode"><pre class="language-ruby"><code>before_all <span class="token keyword">do</span> <span class="token operator">|</span>lane<span class="token punctuation">,</span> options<span class="token operator">|</span>
  <span class="token comment"># ...</span>
<span class="token keyword">end</span>
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br></div></div><p><code>before_each</code>  会在任意 lane 执行前执行。与  <code>before_all</code>  只执行一次不同，如果在一个 lane 中多次调用了其他的 lane，则其他的 lane 执行前都会执行  <code>before_each</code> 。</p> <div class="language-ruby line-numbers-mode"><pre class="language-ruby"><code>before_each <span class="token keyword">do</span> <span class="token operator">|</span>lane<span class="token punctuation">,</span> options<span class="token operator">|</span>
  <span class="token comment"># ...</span>
<span class="token keyword">end</span>
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br></div></div><p><code>before_all</code>  会先于  <code>before_each</code>  执行且仅执行一次，许多通用操作如从 git 拉取代码等可以放在  <code>before_all</code>  或  <code>before_each</code>  中</p> <h3 id="after-all-与-after-each"><a href="#after-all-与-after-each" class="header-anchor">#</a> <code>after_all</code>  与  <code>after_each</code></h3> <p><code>after_all</code>  会在 lane 执行完后执行一次</p> <div class="language-ruby line-numbers-mode"><pre class="language-ruby"><code>after_all <span class="token keyword">do</span> <span class="token operator">|</span>lane<span class="token punctuation">,</span> options<span class="token operator">|</span>
  <span class="token comment"># ...</span>
<span class="token keyword">end</span>
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br></div></div><p><code>after_each</code>  会在任意 lane 执行完后执行。同样如果在一个 lane 中多次调用了其他的 lane，则其他的 lane  执行完后都会执行  <code>after_each</code> 。</p> <div class="language-ruby line-numbers-mode"><pre class="language-ruby"><code>after_each <span class="token keyword">do</span> <span class="token operator">|</span>lane<span class="token punctuation">,</span> options<span class="token operator">|</span>
  <span class="token comment"># ...</span>
<span class="token keyword">end</span>
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br></div></div><p><code>after_all</code>  会在  <code>after_each</code>  执行完后执行且仅执行一次，许多通用操作如发送打包成功的通知等可以放在  <code>after_all</code>  或  <code>after_each</code>  中。</p> <div class="custom-block warning"><p class="custom-block-title">注意</p> <p>如果执行过程中出现错误则会退出并执行 <a href="#error"><code>error</code></a>， <code>after_all</code>  与  <code>after_each</code>  将不会执行</p></div> <h3 id="error"><a href="#error" class="header-anchor">#</a> <code>error</code></h3> <p><code>error</code>  会在 lane 执行出错后执行，在这里可以进行异常处理</p> <div class="language-ruby line-numbers-mode"><pre class="language-ruby"><code>error <span class="token keyword">do</span> <span class="token operator">|</span>lane<span class="token punctuation">,</span> exception<span class="token punctuation">,</span> options<span class="token operator">|</span>
  <span class="token comment"># ...</span>
<span class="token keyword">end</span>
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br></div></div><h2 id="action"><a href="#action" class="header-anchor">#</a> Action</h2> <p>除了通过 Ruby 代码在自定义 lane 中实现各种功能，fastlane 已经内置了许多写好的独立方法库也就是 action。每一个 action 都是一个 Ruby 脚本，它们是 fastlane 的最小执行单元。这些 action 基本上已经涵盖了打包过程中的各项操作。下面是 iOS 打包中几个常用 action</p> <h3 id="cocoapods"><a href="#cocoapods" class="header-anchor">#</a> cocoapods</h3> <p><code>cocoapods</code>  会帮我们执行  <code>pod install</code> ，如果工程中使用了 CocoaPods 管理三方库会经常用到。使用  <code>cocoapods</code>  前需要在 Gemfile 中添加</p> <div class="language-ruby line-numbers-mode"><pre class="language-ruby"><code>gem <span class="token string">&quot;cocoapods&quot;</span>
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br></div></div><p>在 lane 中使用时直接调用</p> <div class="language-ruby line-numbers-mode"><pre class="language-ruby"><code>lane <span class="token symbol">:debug</span> <span class="token keyword">do</span>
  cocoapods  <span class="token comment"># 执行 pod install</span>
<span class="token keyword">end</span>
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br></div></div><h3 id="gym"><a href="#gym" class="header-anchor">#</a> gym</h3> <p><code>gym</code>  可以根据配置参数编译 iOS 应用并生成 ipa 包。下面是  <code>gym</code>  中的常用参数</p> <table><thead><tr><th>参数名</th> <th>描述</th> <th>默认值</th></tr></thead> <tbody><tr><td>workspace</td> <td>workspace 文件路径，使用 cocoapods 后需要使用</td> <td></td></tr> <tr><td>project</td> <td>project 文件路径，若有 workspace 此项可忽略</td> <td></td></tr> <tr><td>clean</td> <td>是否在编译前 clean 工程</td> <td>false</td></tr> <tr><td>configuration</td> <td>编译设置，Release、Debug、自定义</td> <td></td></tr> <tr><td>export_method</td> <td>包输出类型 app-store、ad-hoc、package、enterprise、development</td> <td></td></tr> <tr><td>output_directory</td> <td>包输出路径</td> <td></td></tr> <tr><td>output_name</td> <td>包名称</td> <td></td></tr> <tr><td>include_symbols</td> <td>是否集成调试符号，若为 false 则会单独生成符号文件</td> <td></td></tr> <tr><td>include_bitcode</td> <td>是否开启 bitcode</td> <td></td></tr></tbody></table> <div class="language-ruby line-numbers-mode"><pre class="language-ruby"><code>lane <span class="token symbol">:debug</span> <span class="token keyword">do</span>
  <span class="token comment"># ...</span>
  gym<span class="token punctuation">(</span>
      workspace<span class="token punctuation">:</span> <span class="token string">&quot;app.xcworkspace&quot;</span><span class="token punctuation">,</span>
      scheme<span class="token punctuation">:</span> <span class="token string">&quot;app&quot;</span><span class="token punctuation">,</span>
      <span class="token comment"># 打包前clean</span>
      clean<span class="token punctuation">:</span> <span class="token keyword">true</span><span class="token punctuation">,</span>
      <span class="token comment"># Release、Debug、自定义</span>
      configuration<span class="token punctuation">:</span> <span class="token string">&quot;Release&quot;</span><span class="token punctuation">,</span>
      <span class="token comment"># app-store, ad-hoc, package, enterprise, development</span>
      export_method<span class="token punctuation">:</span> <span class="token string">&quot;ad-hoc&quot;</span><span class="token punctuation">,</span>
      <span class="token comment"># 文件输出路径</span>
      output_directory<span class="token punctuation">:</span> <span class="token string">&quot;/Users/user/Desktop/&quot;</span><span class="token punctuation">,</span>
      <span class="token comment"># ipa名称</span>
      output_name<span class="token punctuation">:</span> <span class="token string">&quot;app.ipa&quot;</span><span class="token punctuation">,</span>
      <span class="token comment"># 是否包含调试符号</span>
      include_symbols<span class="token punctuation">:</span> <span class="token keyword">true</span><span class="token punctuation">,</span>
      <span class="token comment"># 是否开启bitcode</span>
      include_bitcode<span class="token punctuation">:</span> <span class="token keyword">false</span><span class="token punctuation">,</span>
    <span class="token punctuation">)</span>
    <span class="token comment"># ...</span>
<span class="token keyword">end</span>
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br><span class="line-number">10</span><br><span class="line-number">11</span><br><span class="line-number">12</span><br><span class="line-number">13</span><br><span class="line-number">14</span><br><span class="line-number">15</span><br><span class="line-number">16</span><br><span class="line-number">17</span><br><span class="line-number">18</span><br><span class="line-number">19</span><br><span class="line-number">20</span><br><span class="line-number">21</span><br><span class="line-number">22</span><br></div></div><h2 id="plugin"><a href="#plugin" class="header-anchor">#</a> Plugin</h2> <p>除了 fastlane 内置的 action，我们还可以通过安装插件的方式引入第三方的 action 来实现更强大的功能。要安装插件只需要在 fastlane 所在目录运行下面的脚本</p> <div class="language-bash line-numbers-mode"><pre class="language-bash"><code>fastlane add_plugin <span class="token punctuation">[</span>插件名<span class="token punctuation">]</span>
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br></div></div><p>首次安装插件会生成 Pluginfile 文件，里面包含了我们安装的所有三方依赖，同时会在 Gemfile 中添加</p> <div class="language-ruby line-numbers-mode"><pre class="language-ruby"><code>plugins_path <span class="token operator">=</span> <span class="token builtin">File</span><span class="token punctuation">.</span>join<span class="token punctuation">(</span><span class="token builtin">File</span><span class="token punctuation">.</span>dirname<span class="token punctuation">(</span>__FILE__<span class="token punctuation">)</span><span class="token punctuation">,</span> <span class="token string">'fastlane'</span><span class="token punctuation">,</span> <span class="token string">'Pluginfile'</span><span class="token punctuation">)</span>
eval_gemfile<span class="token punctuation">(</span>plugins_path<span class="token punctuation">)</span> <span class="token keyword">if</span> <span class="token builtin">File</span><span class="token punctuation">.</span>exist<span class="token operator">?</span><span class="token punctuation">(</span>plugins_path<span class="token punctuation">)</span>
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br><span class="line-number">2</span><br></div></div><p>之后就可以在 lane 中使用这个 action 了</p> <h3 id="上传至-fir-im"><a href="#上传至-fir-im" class="header-anchor">#</a> 上传至 fir.im</h3> <p>fir.im 是一个常用的 app 分发平台，它提供了 fastlane 插件 <a href="https://github.com/FIRHQ/fastlane-plugin-fir_cli" target="_blank" rel="noopener noreferrer">fir_cli<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a> 可以自动将 app 上传</p> <h4 id="安装-2"><a href="#安装-2" class="header-anchor">#</a> 安装</h4> <div class="language-bash line-numbers-mode"><pre class="language-bash"><code>fastlane add_plugin fir_cli
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br></div></div><h4 id="参数"><a href="#参数" class="header-anchor">#</a> 参数</h4> <table><thead><tr><th>参数名</th> <th>描述</th> <th>默认值</th></tr></thead> <tbody><tr><td>api_token</td> <td>注册账号后获得 token</td> <td></td></tr> <tr><td>changelog</td> <td>设置更新日志</td> <td></td></tr> <tr><td>skip_update_icon</td> <td>跳过图标更新，使用上次的图标</td> <td>false</td></tr> <tr><td>open</td> <td>是否开放所有人下载</td> <td>true</td></tr> <tr><td>password</td> <td>设置下载密码</td> <td></td></tr></tbody></table> <p>更多参数前往 <a href="https://github.com/FIRHQ/fastlane-plugin-fir_cli" target="_blank" rel="noopener noreferrer">fir_cli<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a> 查看</p> <h4 id="使用-2"><a href="#使用-2" class="header-anchor">#</a> 使用</h4> <div class="language-ruby line-numbers-mode"><pre class="language-ruby"><code>lane <span class="token symbol">:debug</span> <span class="token keyword">do</span>
  <span class="token comment"># ...</span>
  fir_cli<span class="token punctuation">(</span>
    api_token<span class="token punctuation">:</span> <span class="token string">&quot;.....&quot;</span><span class="token punctuation">,</span>
    changelog<span class="token punctuation">:</span> <span class="token string">&quot;测试更新&quot;</span><span class="token punctuation">,</span>
    skip_update_icon<span class="token punctuation">:</span> <span class="token keyword">true</span><span class="token punctuation">,</span>
    open<span class="token punctuation">:</span> <span class="token keyword">false</span><span class="token punctuation">,</span>
    password<span class="token punctuation">:</span> <span class="token string">&quot;123456&quot;</span><span class="token punctuation">,</span>
  <span class="token punctuation">)</span>
<span class="token keyword">end</span>
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br><span class="line-number">10</span><br></div></div><h3 id="上传到蒲公英"><a href="#上传到蒲公英" class="header-anchor">#</a> 上传到蒲公英</h3> <p>蒲公英是常用的 app 分发平台，它提供了 fastlane 插件 <a href="https://www.pgyer.com/doc/view/fastlane" target="_blank" rel="noopener noreferrer">pgyer<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a> 可以自动将 app 上传</p> <h4 id="安装-3"><a href="#安装-3" class="header-anchor">#</a> 安装</h4> <div class="language-bash line-numbers-mode"><pre class="language-bash"><code>fastlane add_plugin pgyer
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br></div></div><h4 id="参数-2"><a href="#参数-2" class="header-anchor">#</a> 参数</h4> <table><thead><tr><th>参数名</th> <th>描述</th> <th>默认值</th></tr></thead> <tbody><tr><td>api_key</td> <td>注册账号后获得</td> <td>必填</td></tr> <tr><td>user_key</td> <td>注册账号后获得</td> <td>必填</td></tr> <tr><td>update_description</td> <td>设置更新描述</td> <td></td></tr> <tr><td>password</td> <td>设置下载密码</td> <td></td></tr> <tr><td>install_type</td> <td>下载类型，1 - 公开安装，2 - 密码安装，3 - 邀请安装</td> <td>1</td></tr></tbody></table> <h4 id="使用-3"><a href="#使用-3" class="header-anchor">#</a> 使用</h4> <div class="language-ruby line-numbers-mode"><pre class="language-ruby"><code>lane <span class="token symbol">:debug</span> <span class="token keyword">do</span>
  <span class="token comment"># ...</span>
  pgyer<span class="token punctuation">(</span>
    api_key<span class="token punctuation">:</span> <span class="token string">&quot;...&quot;</span><span class="token punctuation">,</span> 
    user_key<span class="token punctuation">:</span> <span class="token string">&quot;...&quot;</span><span class="token punctuation">,</span> 
    password<span class="token punctuation">:</span> <span class="token string">&quot;123456&quot;</span><span class="token punctuation">,</span> 
    install_type<span class="token punctuation">:</span> <span class="token string">&quot;2&quot;</span><span class="token punctuation">,</span>
    update_description<span class="token punctuation">:</span> <span class="token string">&quot;全新的版本&quot;</span>
  <span class="token punctuation">)</span>
<span class="token keyword">end</span>
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br><span class="line-number">10</span><br></div></div></div> <footer class="page-edit" style="display:none;"><!----> <!----></footer> <!----> <!----></main> <!----> <div class="comments-wrapper" data-v-0cb1c278><div class="valine-wrapper"><div id="valine"></div></div></div></div></div></div></div></div><div class="global-ui"><div class="back-to-ceiling" style="right:1rem;bottom:6rem;width:2.5rem;height:2.5rem;border-radius:.25rem;line-height:2.5rem;display:none;" data-v-a81d141e data-v-a81d141e><svg t="1574745035067" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5404" class="icon" data-v-a81d141e><path d="M526.60727968 10.90185116a27.675 27.675 0 0 0-29.21455937 0c-131.36607665 82.28402758-218.69155461 228.01873535-218.69155402 394.07834331a462.20625001 462.20625001 0 0 0 5.36959153 69.94390903c1.00431239 6.55289093-0.34802892 13.13561351-3.76865779 18.80351572-32.63518765 54.11355614-51.75690182 118.55860487-51.7569018 187.94566865a371.06718723 371.06718723 0 0 0 11.50484808 91.98906777c6.53300375 25.50556257 41.68394495 28.14064038 52.69160883 4.22606766 17.37162448-37.73630017 42.14135425-72.50938081 72.80769204-103.21549295 2.18761121 3.04276886 4.15646224 6.24463696 6.40373557 9.22774369a1871.4375 1871.4375 0 0 0 140.04691725 5.34970492 1866.36093723 1866.36093723 0 0 0 140.04691723-5.34970492c2.24727335-2.98310674 4.21612437-6.18497483 6.3937923-9.2178004 30.66633723 30.70611158 55.4360664 65.4791928 72.80769147 103.21549355 11.00766384 23.91457269 46.15860503 21.27949489 52.69160879-4.22606768a371.15156223 371.15156223 0 0 0 11.514792-91.99901164c0-69.36717486-19.13165746-133.82216804-51.75690182-187.92578088-3.42062944-5.66790279-4.76302748-12.26056868-3.76865837-18.80351632a462.20625001 462.20625001 0 0 0 5.36959269-69.943909c-0.00994388-166.08943902-87.32547796-311.81420293-218.6915546-394.09823051zM605.93803103 357.87693858a93.93749974 93.93749974 0 1 1-187.89594924 6.1e-7 93.93749974 93.93749974 0 0 1 187.89594924-6.1e-7z" p-id="5405" data-v-a81d141e></path><path d="M429.50777625 765.63860547C429.50777625 803.39355007 466.44236686 1000.39046097 512.00932183 1000.39046097c45.56695499 0 82.4922232-197.00623328 82.5015456-234.7518555 0-37.75494459-36.9345906-68.35043303-82.4922232-68.34111062-45.57627738-0.00932239-82.52019037 30.59548842-82.51086798 68.34111062z" p-id="5406" data-v-a81d141e></path></svg></div><canvas id="vuepress-canvas-ribbon"></canvas><div class="my-popup" style="display:none;" data-v-3414bdeb><div class="my-popup-container" data-v-3414bdeb><div class="my-popup-exit" data-v-3414bdeb></div> <img src="" alt data-v-3414bdeb></div></div><div data-v-2ebabc0c></div><div class="kanbanniang" data-v-3b0f9b07><div class="banniang-container" style="display:;" data-v-3b0f9b07><div class="messageBox" style="right:68px;bottom:230px;display:none;" data-v-3b0f9b07>
      欢迎来到 KnightSama‘s Blog
    </div> <div class="operation" style="right:90px;bottom:40px;display:;" data-v-3b0f9b07><i class="kbnfont kbn-ban-home ban-home" data-v-3b0f9b07></i> <i class="kbnfont kbn-ban-message message" data-v-3b0f9b07></i> <i class="kbnfont kbn-ban-close close" data-v-3b0f9b07></i> <a target="_blank" href="https://vuepress-theme-reco.recoluan.com/views/plugins/kanbanniang.html" data-v-3b0f9b07><i class="kbnfont kbn-ban-info info" data-v-3b0f9b07></i></a> <i class="kbnfont kbn-ban-theme skin" style="display:;" data-v-3b0f9b07></i></div> <canvas id="banniang" width="200" height="260" class="live2d" style="right:90px;bottom:-20px;opacity:0.9;" data-v-3b0f9b07></canvas></div> <div class="showBanNiang" style="display:none;" data-v-3b0f9b07>
    看板娘
  </div></div></div></div>
    <script src="/assets/js/app.a2483de7.js" defer></script><script src="/assets/js/4.0078dadf.js" defer></script><script src="/assets/js/1.c3e7d2b0.js" defer></script><script src="/assets/js/36.f5725281.js" defer></script>
  </body>
</html>
